package com.fc.mall.dto;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class PmsGroupBuyReq implements Serializable {
    private Long id;

    /**
     * 商品编号
     *
     */
    private Long productId;

    /**
     * 商品名称
     *
     */
    private String productName;

    /**
     * ,几人团
     *
     */
    private Integer groupCount;

    /**
     * 团购价
     *
     */
    private BigDecimal groupPrice;

    /**
     * 开团持续时间
     *
     */
    private Integer activeHour;

    /**
     * 已团人数
     *
     */
    private Integer totalCount;

    /**
     * 状态
     *
     */
    private Integer status;

    /**
     * 限购数量
     *
     */
    private Integer limitCount;

    /**
     * 过期时间
     *
     */
    private String expiredTime;

    /**
     * 起始时间
     *
     */
    private String effectTime;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", productId=").append(productId);
        sb.append(", groupCount=").append(groupCount);
        sb.append(", groupPrice=").append(groupPrice);
        sb.append(", activeHour=").append(activeHour);
        sb.append(", totalCount=").append(totalCount);
        sb.append(", status=").append(status);
        sb.append(", limitCount=").append(limitCount);
        sb.append(", expiredTime=").append(expiredTime);
        sb.append(", effectTime=").append(effectTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}